package com.itheima.servlet;

import com.itheima.domain.Student;

import java.util.ArrayList;
import java.util.List;

public interface StudentServlet {
    //新增学生
    public boolean add(Student student);

    //修改学生
    public boolean update(Student student);

    //根据id查询学生
    public Student findByid(int id);

    //根据id删除学生
    public boolean deleteById(int id);

    //查询所有学生
    public List<Student> findAll();

}
